package cn.itzzx.lagou.netty.rpc;

import cn.itzzx.lagou.netty.rpc.provider.UserServiceImpl;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 启动完springboot 后 ，启动Netty服务端
 * @author Martin
 * @date 2020-06-18
 * @see 1.0
 */
@Component
public class ServerInitialization implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        UserServiceImpl.startServer("127.0.0.1",8089);
    }
}
